﻿using System;
using System.Collections.Generic;
using System.Text;

namespace practice
{
   // 车
   class Car 
    {
        public string CarName;
        public string CarColour;
        public int CarWheel { get; set; }

        public void CarInfosomthing()
        {
            if (CarWheel >= 4)
            {
                Console.WriteLine("车子可以跑起");
            }
            else
            {
                Console.WriteLine("送去修车厂维修");
            }
        }
            public void CarInfo()
            {
                Console.WriteLine("车的名称：{0},车的颜色：{1}，车的轮子数量{2}", this.CarName, this.CarColour, this.CarWheel);
            }
        }

        }
      
      
    

